Updated build scripts for attachments.