Fixed output files check/copy.