fix collapse of meta:cwd
open the log when the process launches (instead of deferring to first modifying I/O) so that it would be possible to log meta correcly