script: handle vcs backends properly