Changing hadoop fs call to be compatible with Hadoop 1.

isDir in Hadoop 1 was changed to isDirectory in Hadoop 2. Changed isDirectory method call to isDir to ensure Hadoop 1 compatibility.

@jelson Before we merge this in, can MSR test locally to see if this fixes the Hadoop 1 incompatibility?