If the hook is a string, try to launch it as a program using inferior-shell. Log hook information as well.