Account for lack of trailing slash in paths.