fixed local mkdir return code