Fixed minor bugs in starting hadoop