[api] make it possible to set the api version in environment.rb file in packages