Return to correct directory after dirty sync