Fixed daemon detection on upstart.