Nice catch. This was a dummy port of the old php build system.
I'll improve that.