Handle Git VCS and resolving branchName if var