fix(codex): make package script and its test portable beyond macOS/bsdtar