Fix get version for old versions of IMP