buildsystem: check the gradle version in the PATH matches the one we want
Older gradle versions may give an error in the simplistic build.gradle. It's fine, we won't have a matching version.
Then we don't need to force the gradle version to create the gradle wrapper.
Alternative version to the fix from !2265 (closed)