recache the ghc packages after rewriting paths