adding fallback for build version if there arent any tags or we're doing...

@thanhc or @sospirited can you do a quick review and merge?