Modify the daemons gem to handle invalid or empty pid files instead of returning pid 0