Check the file name before checking version.

It's needed for Types::Serialiser.
Types::Serialiser contains JSON::PP::Boolean 1.00.