Modified awk statement
The match function varies too much across platforms. I swapped it out for
the split function, which seems to be a bit more standard.