Laravel - improved checking for Laravel version.