better compressed file ext detection