Fix for compatibility with the `basename` command in GNU coreutils.

`basename` in GNU coreutils wants just one parameter differently from the default one.
GNU coreutils is easily available via Homebrew.