Make sure to clean stale files on http download

Should fix #1585