improved log folder behavior, optimized get_my_caller()