When enable the site.xcatdebugmode, the postscript will be run with 'bash -x' to output more debug messages. But not all of xCAT postscripts are shell script, so do the check before running it with 'bash -x'.