update git-workdir.sh script to checkout the remote branch directly