remove \n from pid file.