Added optional extension parameter to the mako_path and mako_cascading_path functions