if HADOOP_HOME is set, add jars in hadoop lib directory to classpath. Minor packaging and script fixes.