Workaround for stdlib 3.2 in PE3.x.

Switch from dirname() to an inline_template that calls File.dirname
directly.
Merge pull request #126 from apenney/stdlib

Workaround for stdlib 3.2 in PE3.x.