Cleans up the permissions in the Manifest