Improved detection if set_command is available + redesigned comment