Make sure init and sample commands don't fail in rare cases

When we parse an xml project file we should always set the framework version first so we know which plugins are supported for this version.
ping @tailsu @teobugslayer @Fatme