Remove unnecessary file separators