Fix RequireJS config reading

- Incorrectly named variable (context.options.mainRequireConfig -> context.options.requireConfig)
- Fixed regex on paths to account for slashes in the baseDir