Prevent downloading to existing file

Fix #318