BIGTOP-1346. Generalize evaluation regexp in packages.gradle