Logger now doesnt hold a lock over files

This means multiple scripts can be run at the same time
and they can all write to the same log files...

Fixes #138