fixed build.sh so it can be run from any dir