remove trailing LOGICAL_PATH_SEPARATOR.