Use regex to match app_install patch in sam.before