Making logging work in its own directory