build: allow passing VERSION and REVISION env vars
Use VERSION and REVISION environment variables when available.
This is useful for build environment that do not have access
to git command or source repository.
Edited by Hossein Pursultani
Use VERSION and REVISION environment variables when available.
This is useful for build environment that do not have access
to git command or source repository.