add remove-last-seperator for ubuntu