Build number uses local variable instead of global env.
Merge pull request #273 from jmpascal/1.5.0-Gradle

Build number uses local variable instead of global env.