shlib.sh: avoid using basename on $0