JBIDE-16176 : use proper stacks archetype id during lookup

Commit also needs to be applied to jbosstools-4.1.1.x and master

Signed-off-by: Fred Bricon <fbricon@gmail.com>