Remove redundant slash in file path.