CHEF-3957: BUGFIX: directory resource whyrun error when dir does not exist.

report bug ticket CHEF-3957.

When you create a recipe using the directory resource,
chef-client/solo fail [No such file or directory] error occurs when it run the why-run with the directory does not exist.