Fix bug in Repository#listDirectory() which prevented lines from being parsed properly