fixed #2806: Change sys["capabilities"] to sys.capabilities.