Handle nonexistant directory when checking for write access
Handle nonexistant directory when checking for write access

pfmoore/pip,pypa/pip,xavfernandez/pip,sbidoul/pip,pypa/pip,sbidoul/pip,pradyunsg/pip,pfmoore/pip,pradyunsg/pip,xavfernandez/pip,xavfernandez/pip