put output file in the correct folder