More robust yard handler for transitions

At least in some configurations (always in my case), :if and :unless are read by the transition handler as strings including the colon, which leads to the generation of spurious states in graphviz. This patch fix the problem and is safe (unless somebody wants to have an state called :":unless" :smile: )