Changed AMD detection to follow standard approach