toolbox: fix version.h optimization to handle non-existing file