fix to detect basearch.
Merge pull request #55 from hansode/feature-docker-io

fix to detect basearch.