fix autogen.sh

- make messages posixly correct by replacing "echo -n" with "printf"
- typo fix
- test for existence of .git/hooks directory first and create it if not
found
- add final message