Be sure stackrc_write.sh has the env vars it expects.