dyngroup: Fix require() error

If imaging module is not enabled, don't include imaging xmlrpc file