fix undefined "argv" when using in programatic context
Merge pull request #75 from boneskull/master

fix undefined "argv" when using in programatic context