fixed version detector: now case insensitive