[utils] avoid using dirname in check_with_astyle.sh, just bash.
[code] fix open brackets coding style.
[utils] add "--add-one-line-brackets" for astyle config.