avoid building very long paths in renderer. fixes #89