Add check for WP-CLI

When using the setup with WP-CLI, WP-CLI fails.

We discussed this on IRC a couple of days ago.
My IRC name Ganseki.