Updated to support calling resolvePaths from a different module.