fix hook discovery bug when remote_hooks is defined: mozilla/awsbox: #79