update app migration to run on only main apps and released builds