Fix for Bug 6600, Library name linking wrong if current location is different