added support for missing replaceVal in sails.modules loader