Restore packages on build