Setting some necessary timeouts, and tweaking the get/set env functions
to work correctly with pexpect