replaced file resource with cookbook_file