Remove git directories before incremental caching

`FileUtils.rm_rf(File.dirname(path))`