Ensure cookbook_path is a string