fix grep params, use printf to assemble cmdline