Update port changing for rhel 6

Kind of a hack, but it works.