Add a postinstall script

Initialize the instances.json at install.