Newer wget supports --trust-server-names which helps to get proper file names when redirected

Unfortunately it doesn't ship with older distributions (like RHEL6 which I am using)...