How to check system architecture using Bash/Shell script