ivs: get build id from the environment

This fixes the build id for builds outside of a git repo (such as when building
debian packages).
Merge into master from pull request #6:
ivs: get build id from the environment (https://github.com/floodlight/ivs/pull/6)