Add support to use maven.tgz directly, if available.

This is how the IDE validation script is supposed to work in the Scala Jenkins setup.