rename TOKEN define

make it clear the token is for github and fix problem with detecting if
it is set.