Works like File::Attributes, but will recurse up the directory tree
until a matching attribute is found.
