When getting filename from URL, consider redirects.

It's a common pattern that download URL is something like
http://server/file/12345 , which then redirects to
http://server/store/123/File_Name.pdf .
Create ~/.pywebget/ if it doesn't exist.