functions.sh: do_configure function --dir arg runs configure found in arbitrary location.