Fix unit test and bug fix for 'pull-os-versions.js' script.