use $^X to invoke the currently-running perl

This should fix a possible problem with the bin/statocles test on
Windows.