`find -type d` was slow and inefficient. now we use ls | grep and it works much better.

This commit reverts d2098b5d58c42a02c7b33fae02075d8928404884.