I would actually prefer it if you didn't use listdir. that's something we don' t just use the same mechanism as in the django detection. You could also create a function `def _find_file_in_parent_dirs(file_name, path)` that generalizes this. I guess we're not doing this the last time anyway. :-)