Keeping var and media directories available
Replacing dynamic config options in sample .sql at install to prevent localhost bug