Added check to see that MY_CMD actually was set.  If not, exit.