Detect indent size when saving installed packages to a package.json