ensuring the file is writable before editing, abbreviating scenario description