Fix remote execution NameError bug in user module

Bugfix was accepted into devel branch (https://github.com/ansible/ansible/pull/2061), maybe it's worth backporting it to 1.0. Here's a copy of the pull request message.

Remote execution of module "user" produced this traceback:

Traceback (most recent call last):
File "/root/.ansible/tmp/ansible-1360686502.37-80297117549296/user", line 1665, in
main()
File "/root/.ansible/tmp/ansible-1360686502.37-80297117549296/user", line 864, in main
module.fail_json(name=name, msg=err, rc=rc)
NameError: global name 'name' is not defined

Patch fixes it, and 'make tests' passes all tests but one (which is skipped).