move perl oneliner to get zmq major ver to its own function
set PERL5LIB correctly