fix RhoFile.listDir failure on pure JS app.