Fix a bug in pre-commit.sh

It left out the changes by astyle out of the current commit
Fire a warning when not astyling stashed files in pre-commit.sh
Honor excludes from astyle.ini in pre-commit.sh