patch to improve behavior of zdiff when file is compressed without extension