Use locate-dominating-file directly