find_file was not skipping .git folders correctly