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.
Merge pull request #261 from fbricker/patch-1

Make substitute replace ${VARS} with environment values.