Use one log for for stdout and stderr
Fix format of environment line