remove redirection from script file