fixed permissions on build script