fix bug for make dir
modify the compiler limited memory