[rakefile] Fix get_version function

[forge] Use now metadata.json (for 3.6.x puppet forge)