fixed os arch handling