[PATCH openEuler-1.0-LTS 081/316] Convert trailing spaces and periods in path components