revert resource name, exec via command argument
Merge pull request #717 from ppp0/issue-717

fix resource name regression