Add #to_s method to VERSION modules

This is needed to work on edge rails.
Cf. rails/rails#8501