patch applied (cabal-branches/cabal-1.2): Make the ld -x test use the temp dir rather than dist dir