Lib: Improve the version checks to detect 1.11

Removes the need to update these checks for 1.11.0, while adding support for pre-releases like 1.11.0-beta1, which before this changes end up with (invalid) 1.10.x settings.

Also improves the error handling in util.stripBanner, where this problem manifested as throwing a TypeError while trying to handle the same TypeError ('file' is undefined, so accessing 'file.path' again throws another error).

Ran into this while testing a pre-release for 1.11.0, as 1.11.0-beta1. Once landed, we need to tag and publish a new version to also get access to the fix for the basedir replacement.