PC Template: More robust awk for getting resolution dimentions.