Fixed permissions error when deleting git repos.

Closes #186.