handle files with a "..gz" extension