Added check that preferences file is not read-only