Update file path separator only if needed