Updated validation for 'set extension' command.