Tweak `isModularize` detection. [ci skip]