Fix trivial issues

- Arranged coding style
- Reduce long/int type conversion on a loop
- Replace CRLF to LF in install_maven_lib.sh file