Updated grep call. Script output passes syntax check (`bash -n`)

Fixes issue #415