Move the path juggling to the dropbox download function