fixed no directory creation when NEW is set to working dir