Fix pid file error in mailrun and modifications to the nametrans.py
script.