getDirectoryContents(): account for other targets like HTML5 as well
Merge pull request #9 from Gama11/master

getDirectoryContents(): account for other targets like HTML5 as well