Reworked setup for new perl version.