CONFIG: Fix off by 1 error in find_directories. Thanks @motersen