nit: may be cleaner to use ExtensionUtils.getModulePath for this construct which appears in multiple places.