Ensuring log file is writeable