Added arch detection for linux