Fix annoying permission and minified file regeneration issues.