buildsystem: Fix typo.
build: Fixes for needs-rebuild computation.

 * Treat build-system just like the other keys.
 * Correctly handle keys not being present at all, as well as being
   removed.
vcs: Resolve checkout directory path.

This will make relative path working as they will be expanded
to absolute paths.