tilo: replace sed with dirname in tilo.sh

Use dirname to figure out the path of maketilo.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
diff --git a/tilo/tilo.sh b/tilo/tilo.sh
index f152e28..175dacf 100755
--- a/tilo/tilo.sh
+++ b/tilo/tilo.sh
@@ -112,7 +112,7 @@
 	exit 1
 fi
 
-`echo $0 | sed 's/tilo$/maketilo/'` $tilo_args out=$output
+$(dirname $0)/maketilo $tilo_args out=$output
 
 rm -f $to_remove