Fix permissions for repo scripts