Flushing stdout and sending ERROR messages to stdout as redirection would be applied to stdbuff command