fix deletion of instances with non-writable .git files