Allow non-simulations because we have a whitelist

This is mainly needed for debugging in bug 886928.
This also fixes DOMAIN which was defined twice.
Merge pull request #174 from kumar303/no-sim

Allow non-simulations because we have a whitelist