Added functionality to detect erroneous root installs for install-package command