GenCode, etal - WordPress fixes

Allow running GenCode and setup.sh on a WordPress-only installation (with WordPress's directory structure).

Depends: https://github.com/civicrm/civicrm-wordpress/pull/29