Fix testing for VIKit presence

The bash built-in "hash" command is silent when it finds its target, so
testing for a non-zero-length string always passes. Use "which" instead
since it prints the full path to standard out.