Fix for vert-x/mod-lang-rhino #14 fs.readDirSync()