diff --git a/solr.sh b/solr.sh
index 9142dff0978c732f1fb4acbebc0087aeb2791d41..5b9233ba803db97fb2fb1127f47cd4253db81426 100755
--- a/solr.sh
+++ b/solr.sh
@@ -36,7 +36,7 @@ usage()
 # Set VUFIND_HOME
 if [ -z "$VUFIND_HOME" ]
 then
-  VUFIND_HOME=`basedir $0`
+  VUFIND_HOME=`dirname $0`
 fi
 
 if [ -z "$SOLR_HOME" ]