[download] Fix get path function

By this the correct path is returned when it is already exists.
Merge pull request #212 from deqing/fix-get-path

[download] Fix get path function