Use mkdir-p.pl more efficiently.