added -p option to mkdir in build.sh to prevent failure when exists