fixed clean.sh, generate_ports.sh