Fix cmake not changing back to root dir