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