Add DirectoryLister interface

Use dependency injection instead of a static method call.