changed readonly mode check to include unwritable mtra dir and unwritable mtra/logs dir