Fix synlink issue causing build failure. Also ensure we only set stableVersion if defined