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