--- pkg-get.orig	2005-03-28 09:42:01.000000000 +0100
+++ pkg-get	2005-03-28 14:23:36.430003000 +0100
@@ -33,7 +33,7 @@
 
 case $progname in
 	/*)
-		progdir=${progname##*/}
+		progdir=${progname%/*}
 	;;
 	*/*)
 		progdir=${progname%/*}
