build: autotools: fix cache path