Fix bad directory change