Strip newline from pid file