add github api token file exist check