compilePG can't locate compile.project.mk

compiling project generator (compilePG.sh) in ubuntu 16.04 gives me the following error:

gene@gene:~/of_v0.9.8_linux64_release/scripts/linux$ ./compilePG.sh 
make: Entering directory '/home/gene/of_v0.9.8_linux64_release/apps/projectGenerator/commandLine'
Makefile:13: ../../libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk: No such file or directory
make: *** No rule to make target '../../libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk'.  Stop.
make: Leaving directory '/home/gene/of_v0.9.8_linux64_release/apps/projectGenerator/commandLine'
There has been a problem compiling the command line projectGenerator.
Please report this problem in the forums.

hardcoding OF_ROOT to the actual full path instead of …/… fixed this for me, but seems like the original script, the relative paths are not set right?