Follow the XDG Base Directory specification

Store the cached files under $XDG_CACHE_HOME/erlang/dialyzer_hipe_cache.
If XDG_CACHE_HOME is unset, it defaults to $HOME/.cache.

See the spec for more details:
http://standards.freedesktop.org/basedir-spec/basedir-spec-0.7.html