Fix fs_read segfault, and implement stderr switching for xargs