use uname -m instead of hardcoding