Detect file version using ctypes instead of PowerShell.