Remove git directories before incremental caching

This should be `exist?`. `File.exists?` is deprecated.