Updated build.sh to work on all platforms