SlimerJS: phantomas dies on listing extensions directory

Fixes #409 - ``fs.isFile`` was raising the following error in SlimerJS when checking for files in not existing directories.

```
Component returned failure code: 0x80520005 (NS_ERROR_FILE_DESTINATION_NOT_DIR) [nsILocalFile.isFile]
```