fix the hack for finding librxtxSerial

uname -m can return
x86
x86_32
i686

x64
amd64
x86_64

any of these ^ values.
So we need to do a comprehensive check

Signed-off-by: Arnav Gupta <championswimmer@gmail.com>