Update upstart check in sysvinit to be exactly the same as the init_is_upstart function

... from /lib/lsb/init-functions (which function isn't available in 12.04 or we'd just use it directly).

/cc @paultag

see also https://wiki.ubuntu.com/UpstartCompatibleInitScripts