Fix a bug in EFI detection because of redirecting result output