fix /dev/fd