Added output redirection if there is an output file passed