Add a filename to the unnamed macro handling. Fixes ROOT-4760.