Split getPropertiesValue in two to make it generic

This will allow us to read key/value pairs from other files.