Fix bundle show asking for input if terminal is not a tty
Merge pull request #2819 from shrey-sharma/master

Fixed issue (#2405) Do not ask for user input on bundle show if terminal is not a tty, just fail
factor out spec selection