Changed the way permissions are removed from repos prior to delete. Fixes #6