Move mkdir work to runtime