Remove extra slash in filepath.