Add a bit more logging and fix issue with browser downloads without file
pattern