On FreeBSD, make user module status 'changed' only if necessary when using 'login_class' parameter.
Fixed inefficient regex.