Improved error message for version mismatch in fetched package

Review 2210 by @larkost
Related to #3181