Correct handling of get_buildid return value

Signed-off-by: Christopher Larson <chris_larson@mentor.com>