You should use the directory_service_model for the queryobj

 otherwise people setting up mr will see an error because the
directoryservice table has not been added to the db.
OS check based now on darwin version

This OS check will fail when Apple comes out with 10.10 or 11.1, better
use
Added readme