Add support for the cwd parameter
Since 2.0, expand-path-helper allows the cwd to be overridden using the cwd parameter. The cwd parameter should be mapped on the userRequire and userRequire.resolve functions and mapped to the expand-path-helper.
To simplify the code, the entire context should be passed to expand-path-helper so it can decide which parameters to accept from the base call.