It would be very helpful to have access to SW-Version and Device Types to overcome the problem of changing command syntax in different sw versions / device types.
IF SW-Version < 15.0 and OS-Type like('C2960S%') then
config findstring = 'ip vrf test'
else
config findstring = 'vrf definition test'
end if