The merry dance of putting dirname around __FILE__.