fix remap and overloading of CommonJS modules