Only move the token file when the source exists

Signed-off-by: Yinan Li <liyinan926@gmail.com>