nw: log into another file if launched via `nw`

Signed-off-by: Oleg Verych <olecom@gmail.com>