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