Improve sp-mtags script

Probe for Android API targets at or lower than project API level (eg, so
that a project level of android-10 finds directory android-9).