pkg macOS: fix nightly dmg build
Only signal the terminal if we have one. Nightly env does not have an TERM flag needed for tput to work.