Use chdir when formatting Hadoop filesystem.
Use chdir when starting Hadoop.
Change directory when starting HBase and Thrift.
Added checking if Java license is accepted to correctly mark tasks as changed.