Improve support for MacOS X directory icon (update_terminal_cwd)

Improvements:
- check if update_terminal_cwd is available instead of relying on the
  kernel version
- test the feature once at init time instead of at prompt time

Note that zsh is not yet supported for that feature unless the
update_terminal_cwd has been imported in your environment.
I think it would be possible to support it, but I don't have access to
MacOS X machines, so... patches are welcome!
cpu_load: merge back Darwin and FreeBSD
Merge branch 'refactor/update_terminal_cwd' of github.com:nojhan/liquidprompt into develop

* 'refactor/update_terminal_cwd' of github.com:nojhan/liquidprompt:
  cpu_load: merge back Darwin and FreeBSD
  Improve support for MacOS X directory icon (update_terminal_cwd)