[GHC] #9876: mkdir errors when running `make sdist`