New 'utils.write_xattr' function created which uses whatever method of writing
xattrs exists on the current platform.

(First it tries the 'xattr' module, then the 'setfattr' commandline tool)

If neither of these facilities are found, 'write_xattr' is left undefined,
and the metadata writing function.