Fix wrong path in Groovy cleanup task.
Add cleanup and version check to Java role, split role into parts.