[COOK-4468] Use ["nokogiri"]["use_system_libraries"] attribute #to_s instead of an if condition