regen.sh - Add support for alternate ports (using same configuration as setup.sh)