Added support for reading package.json directly from embed.