Get platform-specific stderr redirection string
function get_stderr_redirect() result(redirect) character(len=:), allocatable :: redirect if (get_os_type() == OS_WINDOWS) then redirect = ' 2>nul' else redirect = ' 2>/dev/null' end if end function get_stderr_redirect