fix relative path error with package.json reading