Adding keyfile support (stolen from addisonj/chef-mongodb)