Refresh sh wrapper

The current code in `bin/wp` was taken more or less straight from Drush.

I think it's time to give it a scrub: see which assumptions Drush made that no longer apply to wp-cli.