Make sure output directory is created.