fix valgrind mode (-x)

fixes #220
add newline to pid print statement