Revert Gradle distributionUrlRegex cleanup.

This reverts commit 75a0a6752a77e2e0f491ae4de7137f5163c7a4bd.