version compatibility fix

added condition for register_importer function