safe check for LOGs directory