add checks for /usr/sbin/update-rc.d and /usr/sbin/update-python-modules to prevent errors on ubuntu