making an if-else on the .name usage so it works in both chef-solo and chef-server