fixed build.sh perm