Chain bug with 3 or more processes fixed, almost done with the check for file when redirecting