Move away from deprecated crypto:sha_mac when crypto:hmac is available

... as done in b7da016.  The ifdef trick is in the same module that
uses the crypto function.

Also make the regexp for detecting the Erlang release more explicit.