Determinate format from ag and ack

Regex match on the grepprg variable
Merge branch 'deterimine-format-for-ag-and-ack'