add checks to make sure that we are copying cookbooks correctly
because we are building with chef-zero, we should not check for the existence of a cookbook
to prevent cloned resources, pull the directory resource out of the if/else blocks