Make checkShellScripts.sh handle path errors better

checkShellScripts.sh has two minor bugs:

  • it should handle being called from its parent directory on systems without realpath
  • it should exit with an error status if it can't find the src directory

This is a fix on master, so it doesn't need a changes file.