Strip off the final / of a conf directory so that templates are rendered to the correct path