Check that Perl version is installed before switching to it