Changed buildtest.sh so it's safe to run from outside its directory