fix for handling absolute directories

This solves https://github.com/moteus/lua-log/issues/2