Fixing unescaped . in the file extension detection regex

The current version incorrectly detect as RAR a file named **hangar10.jpg**.