Remove old hardcoded code, fix recursive deps, add backup_in_remote arg to upload_media