Some improvements

A set of changes which are catching some possible pitfall:
* wrong version of Java
* missing pr location for the Scala git repo
* too small permgen

And a few fixes:
* usage string in prepare-repos.sh
* LOCAL_M2_REPO computation in validator.sh