add work directory in mkdir procedure.