Remove file_directory segment