Make substitute replace ${VARS} with environment vars if they have no value set in defines.

This allows the use of ${ANDROID_SDK} inside extensions XML files.