Fix/skip prompt

Fixed and tested version of #1470

Please review and merge
Should there be tests where `config = { interactive: false }` or `process.env.CI = true`?