Bug in cookbook download

A file or template with the same name but a different path may appear in a cookbook. When downloading, however, the name is used. This leads to unexpected results as the same file/template is downloaded by name, but for different paths.

The opscode chef-client cookbook (2.x) is a good example.