Rewrite get_repo_files() to find dirs without files
This fixes a bug introduced in 0c3529ed and discovered by koelnconcert (#107)
Fixed potential bug with get_repo_files
I was unable to actually get provoke a failure, still.. added the test case and fixed the "bug"
Merge branch 'development' into testing
Merge branch 'testing' into master