bugfix: home directory node attribute

- The previous patch didn't work as expected. If the attribute wasn't
  set, Chef would fail. New fix. And more minitests to check all
  possible cases.