simplify the installed version check