turns out find-containing-parent-directory is just locate-dominating-file