One more tweak to fix directory creation bug.