Use a variable for the `grep` path
Make inline shell script safer and more verbose

Don't need `echo` statements for debug purposes.
Fail build targets if the necessary executables are not available