[#343347] clean up error messages for missing vars

Ditto on these print statements — should go to stderr