updated ld to handle paths more correctly for vendors and fixed root setting