warnings fixed

.isDir() is suppressed, because this method is requred by hadoop-1