Skip the prompt when runned in non-TTY mode

Fix #17
Merge pull request #18 from SBoudrias/master

Skip the prompt when runned in non-TTY mode (Fix #17)