fix lookup of document root when cabal install'ed (bug introduced in aa654698a81adb77b71acb9323590e64a6b8b318)