Add support for onlyif exec option