added filetest to see if .gz present, allows restart of script