Allow relative paths for jinja2 template extend statements

A template cannot extend from another template that in turn extends from *another* template using a relative path; ansible will assume all relative paths are relative to the first template, breaking the second reference.

This PR adds a test which exhibits this bug and a small fix (based on http://stackoverflow.com/a/8530761/351149) that corrects it.