Fix broken test case from JENKINS-14741.
[FIXED JENKINS-17816] Fix detection of SDK from PATH.