strip slash (/) from pathname in render.py