Fix: build crashes when version file contains invalid content.