cdh(): only search basename for dir pattern