protected function composeCommand($args): string
    {
        $command = $this->getBinary();

        if (\is_array($args)) {
            $args = implode(' ', $args);
        }

        // Only append args if we have some
        $command .= $args !== '' ? ' ' . $args : '';

        return $command;
    }