Fix leak and more error check
properties: Respect install prefix

It fixes 'make distcheck'
Version 0.1.5