move perl check to Makefile.PL