Fix npm install, bower install and static url
Fix permissions in apps folder after installing