use uname -m instead of uname -p, as uname -p returns unknown