"Updating" from TW to 15.1 isn't a supported scenario. Nevertheless the installation image should be able to detect legacy vs UEFI correctly of course.