Fix getLocation for Dropbox and GDrive