Update api_version.lua

Moved the output from the preferences to dt.print_error.