Automatic package restore