Honour recurse=yes for directory removal

The [documentation](http://docs.ansible.com/file_module.html) says that recursive directory removal should work, but the existing logic only works for directory creation because an exception is thrown unless state=directory. This PR fixes that while ensuring that recursive removals fail when the previous state is anything other than "directory".