Fix reading version file