Fix listFilesInDir

Fix for #111