Fixed cookbook rubocop/foodcritic problems. Also fixed a problem in the directory creation when adding slaves nodes.