there is a save as version in the menu, doesn't it do the trick ?
if you keep a naming convention kind of "myscript_v1"
nuke will understand and with this save feature will save as a new file called _v2
you can probably write something in python too but it is probably faster that way
hope it helps