Fix redirection for linux