Add JAVA_HOME to build.sh
Add JAVA_HOME to build.sh

Only updates PATH if not on Jenkins or Travis-CI.

JAVA_HOME is missing '/bin' because PATH requires 'bin' directories,
yet some applications use JAVA_HOME to access other resources from
Java.

fix bug 1054557

linearregression/socorro,mozilla/socorro,luser/socorro,cliqz/socorro,luser/socorro,Tayamarn/socorro,mozilla/socorro,spthaolt/socorro,rhelmer/socorro,lonnen/socorro,Serg09/socorro,Tayamarn/socorro,mozilla/socorro,lonnen/socorro,pcabido/socorro,spthaolt/socorro,KaiRo-at/socorro,pcabido/socorro,rhelmer/socorro,mozilla/socorro,m8ttyB/socorro,m8ttyB/socorro,AdrianGaudebert/socorro,m8ttyB/socorro,Tayamarn/socorro,Serg09/socorro,mozilla/socorro,Tchanders/socorro,KaiRo-at/socorro,twobraids/socorro,Serg09/socorro,yglazko/socorro,spthaolt/socorro,rhelmer/socorro,adngdb/socorro,yglazko/socorro,twobraids/socorro,cliqz/socorro,Tayamarn/socorro,rhelmer/socorro,linearregression/socorro,linearregression/socorro,adngdb/socorro,Serg09/socorro,AdrianGaudebert/socorro,yglazko/socorro,luser/socorro,twobraids/socorro,Tchanders/socorro,AdrianGaudebert/socorro,cliqz/socorro,cliqz/socorro,spthaolt/socorro,linearregression/socorro,m8ttyB/socorro,yglazko/socorro,yglazko/socorro,KaiRo-at/socorro,luser/socorro,Tchanders/socorro,twobraids/socorro,spthaolt/socorro,m8ttyB/socorro,Tayamarn/socorro,pcabido/socorro,KaiRo-at/socorro,luser/socorro,cliqz/socorro,twobraids/socorro,KaiRo-at/socorro,pcabido/socorro,rhelmer/socorro,AdrianGaudebert/socorro,Tchanders/socorro,AdrianGaudebert/socorro,lonnen/socorro,twobraids/socorro,Tchanders/socorro,adngdb/socorro,pcabido/socorro,pcabido/socorro,adngdb/socorro,Serg09/socorro,linearregression/socorro,luser/socorro,m8ttyB/socorro,Tchanders/socorro,adngdb/socorro,Tayamarn/socorro,rhelmer/socorro,KaiRo-at/socorro,adngdb/socorro,linearregression/socorro,AdrianGaudebert/socorro,spthaolt/socorro,cliqz/socorro,lonnen/socorro,mozilla/socorro,yglazko/socorro,Serg09/socorro