Detect upstart vs init.d in postinst and set up rc.d links accordingly