FIX for issue 1022
When a test script and support file gets uploaded the first time it is handled separately than when it's created and updated, which caused the check for repeat filenames to fail when a a file being created is the same as an existing file. Added a line to add files being updated.
Merge pull request #1045 from umsmit32/issue-1022

When a test script and support file gets uploaded the first time it is passed differently in the params hash than when it's created and updated. This caused the check for repeat filenames to not work properly when a a file being created is the same as an existing file. Added a line to add files being updated.
Closes #1022