Handle case sensitivity when unlinking linked directory.