Allow masspay script to be used non-interactively

I needed this change in order to run under foreman with environment
configuration piped in from heroku config -s.