hosts/linux: don't use sudo to write NFS if writable [GH-2643]