Fixed build.sh so that it properly changes directories