Make pre-commit.sh script more compatible

sh-utils package shipped with msysGit doesn't support "uname -o"