Fix/skip prompt

Fixed and tested version of #1470

Please review and merge
env.CI is not used in analytics.js, so this one is correct test