Improved shell_quote and added test with shell.
Updated shell_quote and tests.
Updated docstrings and documentation highlight the different treatment of the 'env' kwarg.