Avoid repeated code for getting the android toolchain prefix

Review at https://rbcommons.com/s/OpenH264/r/642/.