fix panic in getYAMLString, handle error returned by getDeployCommand