Changed the order of detecting whether the archive is in .rar  format.

Its very slow with big archives and shouldn't be done when we got archive in format which can be detected fast.
Merge pull request #27 from Strachu/rar_reorder

Changed the order of detecting whether the archive is in .rar format.