Fix permission denied while writing to /dev/stderr