Fixed hadoop version detection