Ensure cmd has unique state name