diff --git a/component/percona-toolkit/buildout.cfg b/component/percona-toolkit/buildout.cfg
index 62479caefd67ea77fa439bc8c80182bcad89e37b..a666e41fc43e96ed327f04297d26da1660c3c383 100644
--- a/component/percona-toolkit/buildout.cfg
+++ b/component/percona-toolkit/buildout.cfg
@@ -14,5 +14,7 @@ md5sum = 022f40dadaea9025820530ea1f986192
 depends =
   ${perl-DBI:location}
   ${perl-DBD-mariadb:location}
+pre-configure =
+  sed -i -e 's,^#!/usr/bin/env perl,#!perl,' bin/*
 configure-command =
   ${perl:location}/bin/perl Makefile.PL