rename BuildAndRun.sh to BuildAndRun.command in order to execute it under GUI
update BuildAndRun.command to change to project directory before building