Fix a bugs about module loading on Rhino