make sure os.devnull is opened as writable.