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