find out the architecture automagically