Avoid repeated code for getting the android toolchain prefix
Merge pull request #1126 from mstorsjo/android-simplify

Avoid repeated code for getting the android toolchain prefix