replace mkdir by mkdir_p