Changed awk to sed for compatibility

Ubuntu/Debian don't have the same awk as openSUSE, so the GUID match didn't work for me. Because of that I changed awk to sed. 

I've tested it on openSUSE (12.2), Debian (7) and Ubuntu (12.04) and it worked fine.