DELTA-1452
ClearGroupCache does not clear gradle 1.11 caches

refactoring code to allow us to use wildcards in the cache paths