Run 'regenerateHaddockIndex' when we're in a sandbox.

Fixes #1337.