Fixing error when calling files method on an empty directory

Just moved the done function out of the getStatHandler method so that it can be called when no files/directories are returned when fs.readdir's callback is executed - currently it throws an error