FileWriter: restorecon only on SELinux-capable systems