Added support for custom home head scripts.