Fixes #4852 properly evaluate log_path writability