fixed lib path resolving: update library when new file path is set