ChangeDir now returns the correct value