Fix for not having to set UI and X509_USER_PROXY.

A parallel pull request has been done for WMCore.