Fix custom hook output and return values


1. Fixing return values in a few places.
1. Show stdout and stderr. Hooks might need to output info to user even if successful.
You're right, sorry. I misunderstood how `system` works. Fixed.