tighten up the grep expressions
Merge pull request #801 from caskdata/feature/hive-environment

tighten up the grep expressions