fix case when plugin is installed via Composer

see https://github.com/scribu/wp-posts-to-posts/pull/449