Less hardcoding. Added upstart option for ubuntu users.