Do not load hooks if system is not installed (fixes #755)