Only replace original file if xmllint succeeds
Turn if-construct into a one-liner
Rename .functions to .aliases