pxeboot: fix security vulnerability in setPxeboot.py

we need to check user paramters before handling putting it down
to the command line

(cherry picked from commit 4e2bfb1b967482b43b421037bf8cf1baa662ec05)