if facter can not determine the fqdn, use the hostname fact
The \* needs to be escaped for grep to pass
Merge pull request #309 from hunner/fix_greps

The * needs to be escaped for grep to pass
Merge pull request #308 from jonmosco/fix_servername

if facter can not determine the fqdn, use the hostname fact
Fix rewrite_base

rewrite_base was broken because it uses -%> instead of %> so it
generated RewriteBase and RewriteCond on a single line. It's also
removed from the vhost since RewriteBase is only valid in a <Directory>
context.