Allow specifying flagstats output file and change name of final flagstats stage.