Fix the temp file url problem on MAC by setting the hostname to empty.