Change cwd before checkout to stable.