Fix env vars

Upstream describes overriding these variables in ./doc/how-to-build.md
under 'Failure to detect Java' #4