Fix artifact packaging for shared Linux/macOS builds