Fix pid regex to eat \r\n