Added redirection for stderr in the output for execute() on POSIX systems