Fix #300 mkdir() problem