Fix to return_dynare_version for unstable builds + Avoid cluttering oo_ on v4.4+ by using local vars

Note that the "Replace all waste variables with ~" commit was reverted, and will be included in a subsequent pull request.