Ensure we are looking for the right import to determine if the module_style is new. Fixes #5148