writer.py: Fixes files saved into wrong path (extra directory).

Closes chfoo/wpull#60.