fixed bash scripts - especially JAVA setup