[JBIDE-14609] ensure deployment folder is switched when app type changes