Fix genbuild.sh to allow configuring building outside of project root