MDL-43089 Fix file permisisons.
MDL-43089 fix failing Behat test.
MDL-43089 make CiBoT happy.