Revert "Revert "Fix error with new chef""

This reverts commit 451bed7db28e612c4de1125f2e4f8006661d4723.
Revert "Ugly hack creating directory"

This reverts commit 24a03bf1d8a01b61a5db35b030556151e31c6379.