flow: more robust handling of apply argument

Signed-off-by: John Fastabend <john.r.fastabend@intel.com>