Probably the source of the problem is the master tag uses the value of the src attribute, unsubstituted as a logic switch.
In this case it checks [emtpy_string_p $src], but $src = "@master@", not what master equals. :(.