Easy workaround for output problem when using fork