IDEA-104500 Gradle: Allow to reuse common logic for other external systems

Keep *.iml files at module content root dir instead of project dir