apply patch by @alf to correctly read metadata during installation (issue #42)