Having single function to read mdmon pid file.