Cleanup hadoopcli mkdir

Quite simple patches. I verified that it behaves as expected.