Fix file permissions for generated layouts (Bug #1391686)

Change-Id: Ie8be286a6bc25c3b47fd939b1c6183c32af41de5
Signed-off-by: Yuliya Bozhko <yuliya.bozhko@totaralms.com>
Merge "Fix file permissions for generated layouts (Bug #1391686)"