split logfile existance and permissions checks