Fixed stdout/stderr buffering issue

- Moved child process environment initialization to the context of child process
- Added {env, Env} option to startup of port process