Fixed Directory Permissions for Apache 2.4

Apache 2.4 directory permissions no longer support 'Allow from all'.
Instead they use the 'Require all granted' syntax.  I have added in
a check for apache 2.4 in the directory that makes this change.
This should be: `.to_f >= 2.4`, without quotes. The same below.