Restore config file permissions check

This was identified in the code review, but not fixed later.
https://www.mediawiki.org/wiki/Special:Code/pywikipedia/10285

Change-Id: I883272185f1e7b2b90dd29dfdbc90637148f4ad5
Merge "Restore config file permissions check"