[download] Fix get path function

By this the correct path is returned when it is already exists.