Fix problem rendering.

Instead of rendering the PG file text, pass the path to the renderer - otherwise load_macro calls which reference relative paths won't work.