Added detection of currently installed version.