Improve Zinc directory creation failure detection, close #1768