fastboot: Check to see if it exists and is on the user's path

Change-Id: I9402cbb50efdfa843dce5cbad621ada654fbd89e
diff --git a/flash.sh b/flash.sh
index 1b104a6..fe84805 100755
--- a/flash.sh
+++ b/flash.sh
@@ -34,7 +34,11 @@
 ROOTDIR=$(dirname $0)/..
 SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
 
-FASTBOOT_CMD="fastboot"
+FASTBOOT_CMD="$(which fastboot)"
+if [[ -z ${FASTBOOT_CMD} ]]; then
+    die "Couldn't find fastboot on your PATH -- did you install it?"
+fi
+
 if [[ -n ${SERIAL} ]]; then
    FASTBOOT_CMD="fastboot -s ${SERIAL}"
 fi