Update download dependency and make path stripping optional

Fixes #664.