Don't try to print file extension in a warning message if it's not available
If version is not provided assume RCMAIL_VERSION (#1488933)