Workaround some issues with duplicate jars in modules