Search up the directory tree for something, then run a command