make sure output path exists