Fixed logic error.
Merge pull request #2722 from SickheadGames/CopyToOutput

Fixed logic error when copying a file to its output folder