Added additional check to preinstall