better directory creation (no more superfluous errors on win32)