Avoids the case where shell detection would result in `basename "-bash"` invocation, triggering the error: basename: illegal option -- b fixes #462