dist: build manifest correctly
bugfix: RT#95353

Test suite probably uses the wrong perl

Thanks to Martin McGrath and  Slaven Rezić for raising and solving this issue.