getting directory check on hadoop right