Detect display for X-related symlinks, specify explicit .git path when detecting whether submodules are installed.