fixup directory creation