fixed crash on non-directory entries at pools/buckets level

changed to ioutil.ReadDir as it simplifies code
and gives convenient IsDir() method