[ -z "$JAVA" ] && JAVA=java
-MD5SUM=`whic md5sum`
-[ -z "$MD5SUM" ] && MD5SUM=`which gmd5sum`
+MD5SUM=`which md5sum|grep -v '^no '`
+[ -z "$MD5SUM" ] && MD5SUM=`which gmd5sum|grep -v '^no '`
if [ -z "$MD5SUM" ]; then
echo "could not find an md5sum command"
exit 1