[bash] Added JAVA_HOME definition
[git] Added pre-commit hook for dw plugin repos