The cases returning `None` here can just `return` to break out early and then you can change `deps_filename` to have type `Path` instead of `Option<Path>`