I know this isn't your fault but we should be using path.Join here. Lots of silly bugs caused by accidental double slashes.