tweaks

API - tweak to get better error data out of apiUtils.execute, but still
not the best
perforce - tweak to how the env are saved during a connection setup