updated build.sh scrpt to always create a build dir