Replace \shape@name with \pgf@sm@shape@name

The macro "\shape@name" was changed to "\pgf@sm@shape@name" in new PGF
versions. If you have an old PGF version and "\pgf@sm@shape@name" is not
declared, checkout the tag "OldPGF" which corresponds to the state
before this commit.