Modify commit hook to make it work with new astyle version

Change-Id: Ie189d93ec7c397a6fca7d3ff51137ad6b99dcf42