Use builtin mkpath instead of system commands