[mtp] Use mkpath instead of mkdir, make sure directories exist