Rewrite get_repo_files() to find dirs without files
This fixes a bug introduced in 0c3529ed and discovered by koelnconcert (#107)