Fixed problem with making directories [skip ci].