only extract node version if package.json exists