Use uname -m instead of -p

The -p option can return arbitrary pieces of information and is 'unkown'
on may distros. The -m options gives us a more appropriate name.