improve auto-snapshot for packages installed via install.packages