Allow ~ expansion in chdir argument of command module
Allow ~ expansion in chdir argument of command module

This allows the use of ~ in the chdir argument of the command module
I know the later change is absolutely necessary as the first change
was not sufficient. It may be that the first change fixes shell and
the second fixes command.

thaim/ansible,thaim/ansible