build: Avoid to constantly rebuild components.

The build-system key might not be available from the previous
metadata or the new one, this situation must be checked.
Since most of the components don't have a build-system key this
caused to always rebuild them.