Dropbox changed the way it handle url version history. Updated the script accordingly.