Generate output file name based on convention