Fix shell redirection