Cleaned up generation of vertualhost file