Fix running build.sh from other directories