Simplified :shell command processing.
Added shell expansion for download paths.