Minor cleanups
Disable hook when /spec is used