Fix architecture detection on Linux.