improve grep command usage

 * add -g/--grep option
 * fall back to grep if ack is unavailable