Remove all bashisms.

fixes #1290
This makes it possible to run install.sh under a POSIX sh, instead of
depending on bash.

Note that this PR includes a submodule update to ycmd, which requires [my PR to YCMD](ttps://github.com/Valloric/ycmd/pull/69) to be merged first.

I signed the CLA.