platform: better x86_64 and os detection for arch

with lsb_release and uname