handle case where more than just basename of command specified