Determine the version from a sample file