fix relative paths when loading the library remotely