Refactor cli_args globbing
Add support for TTY vs piped SSH commands