install.sh: bring back basename for OSX compatability