Implement command line passing to work to emrun when --emrun is passed.
Merge pull request #1932 from juj/emrun_argc_argv

Implement command line passing to work to emrun when --emrun is passed.