fixed issue with uploaded csv files not being deleted after being processed. Fixes #323