server/upload.py: sanitize log file name
src/test_detect.py: fix broken tests introduced by 61b740fbb3b7b9fb5289e6f65fd2b1c9dc6e0d8e