red-brick: Add FILE_FLAG_REPLACE