changing plugin directory install validator

hiding comments till refactored for new WP-API