Fix detection of installed_version