Fixed issue with god incorrectly writing pid files due to ruby bug http://bugs.ruby-lang.org/issues/8185