Add buildid to the metadata attributes when their embedded.

fixes #6