Refactored and added helper scripts specific for hibernate build jobs. Added explicit JAVA_HOME and LANG values.