Fix check_running_under_upstart