make sure directory pathnames are consistently formed so recursive PathComponent definitions work with multiple script_paths