pub fn substitute(path: PathBuf) -> PathBufExpand description
Takes a path, finds any components that begin with a $ and then attempts to
substitute the remainder of the component with an environment variable named
with that remainder.
An attempt to duplicate the functionality of shells.