.functions: Compare original and gzipped file size

Remove old function and use more flexible one.