Update sw version during rebuild if needed
Currently, the version file is created once and never updated, leading to the situation that, in order to trigger the version update, the version file has to be removed.
Make use of the CMake variables cache to trigger the version update.
issue