Handle correctly the case where externalFilenameBuildMode is NONE.