[tools] automake: further relocation fixes