Made scanning for mounted devices configurable.

These changes are totally untested The default behaviour is to scan for mounted devices as before.