fixed error message for sys.listDirectory()
marmalade compatibility fixes