fix directory change on different drive