Add resolve-credentials code from leiningen to correctly get repo credentials from environment variables