The short version specifier you give is matched against all available versions with grep, and the last match is picked. This means if you say "1.8", it will pick a 1.8.7 version over 1.8.6 if you have both installed. To make it explicit you want 1.8.6, simply say "1.8.6" or just "8.6".