Fix check for desktop directory