allow missing files for simple git repos, also more cleanup