Use appropriate methods in exec plugin.
Merge pull request #118 from greboid/master

Use appropriate methods in exec plugin.