improved creation of awk command
distinguished between input and output extension
removed duplicate check
added glib