add support for JDK6 and fix JAVA_HOME issue

Changes:
1. Replace usage of Process.Redirect(JDK7) with process pipes operation.
2. Rewrite the directory traversal part, to use File(JDK6)
3. The storm supervisor, nimbus, and core should use java defined in hadoop_env.sh, instead of using default "java" path.