for libre/perl converter, create directories if not exist