Debugging directory switch detection.