Add checks for pe_version