CHEF-5052 Correctly set cookbook_name and recipe_name when cloning

Added regression tests to https://github.com/opscode/chef/pull/1273