Ignore .git entries when getting path's hash