Fixed log dir/file creation