fix set all_patches and installed_apps before running after install