[BACKEND] Validate write permissions on working directory and output directory (#1395)
Closes #1394
Should help debug user issues like #1148
Checks permissions on the following:
- working directory
- output directory
- cookiefile (if specified)
And will fail immediately with a verbose message.