Remove git directories before incremental caching

!File.exists?(File.join(File.dirname(path), required_file))