fix watchfile (add capture of version)