It's tricky because it involves recursive filesystem parsing, depth checking and glob matching. But figured it out. Fixes #4.