Fixes #3148: Added versions support to the apt and rpm installation Policy Templates

New pull request to replace #33, references https://www.rudder-project.org/redmine/issues/3148.