script: Fix signing packages with no TTY

I am running a release via cron with this change now, so will merge if it succeeds.