[TIMOB-8784] added support to copy native modules to project

This pull request also copies over CommonJS modules.