Fix bug with version file