modified configure.sh

Fixed function 'get_ports' (prepare variable 'existing' before test). Minor changes.