Fix NameError in configure script

d5ef35f10a9097b68d7c1053cf45478fb4023fea forgot to update the variable name in the failure message as well.