Fix the file url to be based always in the output directory

If the module ID (path) starts with a prefix defined in the require path configuration, the result of the toUrl is based in the input directory  If the file needs to be processed from the output directory, which is the usual case, the path has to be rebased.