Autotools, removing duplicate paths