Fixed finding the git branch from the environment
Now updating the symlink after all other stuff is done