Remove duplicates or empty elements from $PATH env var

Fixes bug 968938
https://bugzilla.redhat.com/show_bug.cgi?id=968938