refactored rhino require() for provided (node) modules