Check if /usr/bin/net exists. Refs #2153

Dovecot and Postfix Active Directory configuration templates must
check if /usr/bin/net executable exists to avoid template warnings. We
cannot assume samba is always installed.