troglodyte

a cave-dweller, especially one of those people thought to have lived in caves in prehistoric times.