fix permissions on build script