Modify behaviour of MODULES-1294

This change makes it so that "Require all granted" is only added to directory entries if the require property is undefined, keeping default behaviour. But if the require property is defined as an empty string or false (or any "falsey" value) it will not add the line.