Added support for cli-command and virtualenv.

TODO: the testing action should move to test suite.