Revers isDirectory to isDir (it breaks Hadoop 1 profile)