make portable: /bin/bash doesn't exist on every system; simplify grep -> awk where just awk will suffice