Preserve prefix and update configure locations