Update uploader

Changed the test for files to a simple test rather than a if statement; exit on fail.