fix output file path string