Some library scanner efficiency improvements.

Prevent unnecessary disk I/O due to QString -> QDir and QString ->
QFileInfo conversions when we already have a QDir/QFileInfo for the
path.