SHDP-201 Fix isDirectory() not available for hadoop1