cmds/core/basename: * Rework to make it more testable
cmds/core/basename:
* Rework to make it more testable

Signed-off-by: Christopher Meis <8c5e739988ca243199545b4ccb26c9d0c7f533ad@9elements.com>

u-root/u-root,u-root/u-root,u-root/u-root