changing directory name from ancestor to base