test for existance of output_file before remove