fixed another bug in the hosts file lookup
extended permissions to include the settings.php template and the sites/default/files directory