Clear up some code in filescanner.c