Empty the vars initially, in case we are not on a branch
Do not check ahead/behind if we are on a detached branch (otherwise it compares HEAD to origin/HEAD)