A few updates to anomaly scanner module.

Clean up a few things, simplify lab module check.