Fix static directory rights
Move app rights restoration after grunt generation