Replace shellcmd mkdir calls with create_directory.