Detect the version of mailx client installed and use the appropriate syntax