Fix some pretty bad logic when installing requests on Ubuntu. Fixes #370.