added check for cookbooks dir before executing chef-solo