Is there a reason to use substring matching in the if clause, but full replacement in the body?

A test for equality in the clause would match the current body, or using the replace method in the body would be more consistent.  Now something like "default_value_tk-nuke_v0.1.x" would be accepted, but that extra "_v0.1.x" wouldn't end up having any value.