Make build-in exclusion more robust by relying on location being -1.