Fixed a bug in the way identity type was set in environment variables. GitHub #82.