Some more NameError fixes and `preexec_fn` was possibly what was causing Travis to fail.