The CommandPath() for a parent might have a space (if .Parent() != .Root()) so we need to replace those spaces with `-`
Signed-off-by: António Meireles <antonio.meireles@reformi.st>