make portable: /bin/bash doesn't exist on every system; simplify grep -> awk where just awk will suffice
Merge pull request #801 from gcw/master

make portable: /bin/bash doesn't exist on every system; simplify grep