Added code to replace ${temp.version} in the pom.template before the
check

Added regex code to replace the ${temp.version} in pom.template and
changed areSame module to now take pom and pom.template contents instead
of the file name. Also added support for version which will be used in
the replacement