Fix setting POOL_BUCKETS=0

MFH
find_all_pool_references: Optimize by using globbing