configure.sh: fix lookup of the last step