fixed hasty check for AMD environments.