fix version check to handle impi subdirectory madness for >= 5.0.1.035

enhancement for #465

@wpoely86: can you review & test this with v4.1.1, v5.0.1 and a couple of others?
Nitpicking indeed ;-)
https://www.englishforums.com/English/CommaAfterIEAndOrEg/vngbb/post.htm