Fix writing pid of ninjablock.conf exec\d process