Implement 'cabal sandbox hc-pkg'.

See #1200 (for which this is a partial fix).