check whether output file exist or not