variable modification; changed install check from dpkg test to which