`FileHelpers` has a method to create a relative path.  Use that and `Path.GetDirectoryName()`.