Improve can extract function.
Test .tar.gz archives with/without extension and with/witout proper mime-type