Had to rework how we do checkouts, since checkout master and checkout origin/master produce different results.  In the event of a tag, checkout origin/<tag> will not work because tags are not branches.  So we have to perform a check to find out if it's actually a branch or tag, then run the appropriate command.