Fixed rewrite-package to load JSON with -d

[#72370214]