app/testpmd: add port check before manual detach