Port the MakeDir component