Modified basename.sh, removing Mac from Mac OS X