Removed some stray print statements that can lead to some weird issues on windows.
Added support for operating systems with /proc/self/fd, but not /dev/fd