fixed build-script version file reading