Move to using the standard "path" package for file system directory parsing, and use a base Context instance.