Simplifying awk regex to make them compatible with awk version before 4.0