Trickery with /proc/self to get file name from fd