In the example above the target filename should expand to 'Test;2.btm' . Instead, it always assigns version number 1.