refactor and fix find_recipe_files