Workaround for stdlib 3.2 in PE3.x.

Switch from dirname() to an inline_template that calls File.dirname
directly.