Modifying restore procedure as it doesn't seem to work for cookbooks.