Move porttree validation into getopts case