Modified build_fota to get the FOTA URL from the preference