Modified configure.sh (explicit exit states in 'verify_ports')