Fix `make dist` and distcheck breakage

Fixes a regression from #559.