Stderr and stdout paths fix

There was a mistake of mixing up the stdout and stderr
paths. It is fixed now.