Don't include unnecessary dirs in release tarball.

Fixes #5409