Fixed bug in checking for the need to run "build/pre.sh"