Use progress bar in importing only when attached to a TTY
Update script fixes