Fixed the add_version script

Fixes https://github.com/jquery/themeroller.jquerymobile.com/issues/161 and https://github.com/jquery/themeroller.jquerymobile.com/issues/184