docs(README.md): update pre-commit hook shell cmd

* wrap imageoptim command in bracket
* echo $images variable should wrapped in double quotes
http://stackoverflow.com/a/6616012/1458162