Fix logging behaviour in configure script

This fixes part of #54.