Improve gcc compiler detection with regex