Fixed output redirection causing a file named "1" being created.