Only show hook filename when debugging

This uses a bit of a hack: if `$DEBUG` is set to `:`, then we are not in
debug mode.