Cleanup invalid directory change