XD-1530 Reverting to use deprecated FileStatus.isDir() method

- This is necessary to remain compatible with Hadoop 1.x versions