Borrowed from Mimic

Fixes fs.find