check db file existence in mw installer.
When installing MediaWiki@57115 with SQLite support, the installer does not check if the database file exist.
The attached patch:
- check the file exist before checking its writable status
- correct a minor typo when writing the 'ok' status.