Remove trailing slash from template theme name