I agree with @caridy. I think it might be best to try to register `pathTo` under all module systems if possible (AMD, CommonJS, YUI), and only if none are available then put it under `root`.