Added global flag when installing grunt and bower and sorted permissions