Refactor path.sep shim