[GHC] #12196: ghc-pkg should drop trailing path separator when computing package database root